package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.line.entity.TLine;
import com.dingpeikeji.quickdeer.core.modules.site.entity.TSitedtl;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;
import com.google.common.collect.Lists;


/**
 * 发布整车Entity
 * 
 * @author wuhao
 * @version 2016-08-08
 */
public class TRentgroup extends DataEntity<TRentgroup> {

	private static final long serialVersionUID = 1L;

	// 整车类型的取值
	public static final String RENT_TYPE_DAY = "4"; // 按天包车
	public static final String RENT_TYPE_TRAVEL = "1"; // 旅游包车
	public static final String RENT_TYPE_AIRPORT = "2"; // 接飞机
	public static final String RENT_TYPE_TRAIN = "3"; // 接火车
	private Integer rentgrpid; // 主键
	private Office office; // 部门
	private String productname; // 产品名称
	private String linepic; // 线路图片(旅游线路)
	private TLine tLine; // 线路
	private String range;
	private TSitedtl departcity; // 出发城市
	private TSitedtl destcity; // 出发城市
	private String payway; // 支付方式
	private Double lowestPrice;//最低价格
	private String brand; // 品牌信息
	private String sitename; // 出发站点
	private String siteid; // 出发站点id
	private String destination; // 选择的景点
	private Integer daysnum; // 产品天数
	private String renttype; // 整车类型
	private String auditstatus; // 审核字段
	private String description; // 线路描述
	private Integer	kms;		//套餐标准公里数
	private Integer lasthour;	//套餐标准时长
	private Integer traveltype; // 旅游包车(周边游1,目的地游2)
	private String ishot; //
	private List<TRentproduct> productList = Lists.newArrayList();	//产品列表

	public TRentgroup() {
		super();
	}

	public String getLinepic() {
		return linepic;
	}

	public void setLinepic(String linepic) {
		this.linepic = linepic;
	}

	public String getIshot() {
		return ishot;
	}

	public void setIshot(String ishot) {
		this.ishot = ishot;
	}

	public TRentgroup(String id) {
		super(id);
	}


	public Double getLowestPrice() {
		return lowestPrice;
	}

	public void setLowestPrice(Double lowestPrice) {
		this.lowestPrice = lowestPrice;
	}

	public String getDestination() {
		return destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}


	public String getSiteid() {
		return siteid;
	}

	public void setSiteid(String siteid) {
		this.siteid = siteid;
	}


	public String getSitename() {
		return sitename;
	}

	public void setSitename(String sitename) {
		this.sitename = sitename;
	}

	public Integer getTraveltype() {
		return traveltype;
	}

	public void setTraveltype(Integer traveltype) {
		this.traveltype = traveltype;
	}

	public Integer getRentgrpid() {
		return rentgrpid;
	}

	public void setRentgrpid(Integer rentgrpid) {
		this.rentgrpid = rentgrpid;
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	@Length(min = 1, max = 50, message = "产品名称长度必须介于 1 和 50 之间")
	public String getProductname() {
		return productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public String getPayway() {
		return payway;
	}

	public void setPayway(String payway) {
		this.payway = payway;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public Integer getDaysnum() {
		return daysnum;
	}

	public void setDaysnum(Integer daysnum) {
		this.daysnum = daysnum;
	}

	public String getAuditstatus() {
		return auditstatus;
	}

	public void setAuditstatus(String auditstatus) {
		this.auditstatus = auditstatus;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public TLine gettLine() {
		return tLine;
	}

	public void settLine(TLine tLine) {
		this.tLine = tLine;
	}

	public String getRenttype() {
		return renttype;
	}

	public void setRenttype(String renttype) {
		this.renttype = renttype;
	}

	public List<TRentproduct> getProductList() {
		return productList;
	}

	public void setProductList(List<TRentproduct> productList) {
		this.productList = productList;
	}

	public String getRange() {
		return range;
	}

	public void setRange(String range) {
		this.range = range;
	}

	public TSitedtl getDepartcity() {
		return departcity;
	}

	public void setDepartcity(TSitedtl departcity) {
		this.departcity = departcity;
	}

	public TSitedtl getDestcity() {
		return destcity;
	}

	public void setDestcity(TSitedtl destcity) {
		this.destcity = destcity;
	}

	public Integer getKms() {
		return kms;
	}

	public void setKms(Integer kms) {
		this.kms = kms;
	}

	public Integer getLasthour() {
		return lasthour;
	}

	public void setLasthour(Integer lasthour) {
		this.lasthour = lasthour;
	}

}